//
//  ZGWLeiOnShiLiBaoGaoModel.m
//  1gene
//
//  Created by 张国文 on 16/6/28.
//  Copyright © 2016年 1jiyin. All rights reserved.
//

#import "ZGWLeiOnShiLiBaoGaoModel.h"

@implementation ZGWLeiOnShiLiBaoGaoModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"disease"]) {
        self.diseaseArray = [NSMutableArray array];
        for (NSDictionary *diseaseDic in value) {
            ZGWDiseaseOnShiLiBaoGaoModel *diseaseModel = [[ZGWDiseaseOnShiLiBaoGaoModel alloc] init];
            [diseaseModel setValuesForKeysWithDictionary:diseaseDic];
            [self.diseaseArray addObject:diseaseModel];
        }
    }
    if ([key isEqualToString:@"typeof"]) {
        self.leiType = value;
    }
}

@end
